/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.siteEncheres.client.seance;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.google.gwt.user.client.rpc.SerializationException;
import domain.Categorie;
import domain.Observer.Seance;
import domain.Utilisateur;
import java.util.List;

/**
 *
 * @author Francois
 */
@RemoteServiceRelativePath("seance/gwtseance")
public interface GwtSeance extends RemoteService {

    public void creerSeance(Seance s, int id_utilisateur) throws SerializationException;
    public List<Seance> listerSeance(String condition, int nbSeance, int numPage) throws SerializationException;
    public void annulerSeance(int id_seance) throws SerializationException;
    public void changerEtatSeance(int id_seance, int etat) throws SerializationException;
    public void finaliserSeance(Seance s) throws SerializationException;
    public void ouvrirSeance(int id_seance) throws SerializationException;
    public void rejoindeSeance(int id_seance, int id_utilisateur) throws SerializationException;
    public void quitterSeance(int id_seance, int id_utilisateur) throws SerializationException;
    public void posterMessage(int id_seance, int id_utilisateur, String message) throws SerializationException;
    public void encherir(int id_seance, int id_utilisateur, Double prix) throws SerializationException;
    public Utilisateur getUtilisateurEnCours ()throws SerializationException;
    public java.util.Date getDateActuelle ()throws SerializationException;
    public List<Categorie> getAllCategorie() throws SerializationException;
    public boolean participeASeance(int id_seance, int id_utilisateur) throws SerializationException;
    
}
